home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / winserv < prev    next >
Text File  |  2001-03-21  |  918b  |  26 lines

  1. Synopsis:
  2.    $winserv([<window>])
  3.  
  4. Technical:
  5.    This function returns the index to the current server for the specified
  6.    window number or name.  If no window is specified, the current is assumed.
  7.  
  8. Practical:
  9.    This function is a convenient way for a script to know what the current
  10.    server is.  It returns the index in the server list, which can then in
  11.    turn be fed to $servername() to translate it to the real server name.
  12.  
  13. Returns:
  14.    > -1   index of server in server list
  15.      -1   window does not exist
  16.  
  17. Examples:
  18.    $winserv(1)                 returns current server for window #1
  19.    $winserv(main)              returns current server for window "main"
  20.    $winserv()                  returns current server for current window
  21.    $winserv(-2)                window #-2 does not exist, return -1
  22.  
  23. See Also:
  24.    lastserver(6); myservers(6); servername(6); servnum(6); servports(6)
  25.  
  26.